using SqlSugar;
using System.ComponentModel;

namespace CoreShop.Model
{
    /// <summary>
    /// 会员积分规则表
    /// </summary>
    public partial class corecmsuserintegralrules
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public corecmsuserintegralrules()
        {
        }
		
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnDescription = "序列", IsPrimaryKey = true)]     
        public System.Int64 id  { get; set; }
        
		
        /// <summary>
        /// 总部id
        /// </summary>
        [SugarColumn(ColumnDescription = "总部id")]   
        public System.Int32? corpId  { get; set; }
        
		
        /// <summary>
        /// 门店id
        /// </summary>

        [SugarColumn(ColumnDescription = "门店id")]        
        public System.Int32? storeId  { get; set; }
        
		
        /// <summary>
        /// 开启积分功能(1开2否)
        /// </summary>
        public bool enableIntegral { get; set; }

        /// <summary>
        /// 是否按商品档案积分
        /// </summary>
        [SugarColumn(ColumnDescription = "是否按商品档案积分")]
		public bool isFoodIntegral { get; set; }
        /// <summary>
        /// 消费积分（消费多少元积1分）
        /// </summary>
        [SugarColumn(ColumnDescription = "消费积分（消费多少元积1分）", Length = 10, DecimalDigits = 2)]
        public System.Decimal consumeIntegral  { get; set; }
        
		
        /// <summary>
        /// 特价商品积分（消费多少元积1分）
        /// </summary>	
        [SugarColumn(ColumnDescription = "特价商品积分（消费多少元积1分）", Length = 10, DecimalDigits = 2)]          
        public System.Decimal specialIntegral  { get; set; }
        
		
        /// <summary>
        /// 积分抵现金（扣减多少积分抵1元）
        /// </summary>
        [SugarColumn(ColumnDescription = "积分抵现金（扣减多少积分抵1元）", Length = 10, DecimalDigits = 2)]    
        public System.Decimal integralToCash  { get; set; }
        
		
        /// <summary>
        ///主卡积分时关联卡的积分比例
        /// </summary>
        [SugarColumn(ColumnDescription = "主卡积分时关联卡的积分比例", Length = 10, DecimalDigits = 2)]     
        public System.Decimal parentIntegral  { get; set; }
        
		
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnDescription = "修改时间", IsNullable = true)]
        public System.Int64? modifyTime  { get; set; }

        /// <summary>
        /// 赠送金额比例
        /// </summary>
        [SugarColumn(ColumnDescription = "赠送金额比例")]
        public System.Int32? giftproportion { get; set; }


        /// <summary>
        /// 赠送帐户消费规则（1.优先使用赠送金额,2.优先使用本金,3.赠送金额和本金按比例使用）
        /// </summary>
        [SugarColumn(ColumnDescription = "赠送帐户消费规则（1.优先使用赠送金额,2.优先使用本金,3.赠送金额和本金按比例使用）")]
        public System.Int32? giftConsumRuleType { get; set; }


        /// <summary>
        /// 门店id
        /// </summary>
        [SugarColumn(ColumnDescription = "本金比例")]
        public System.Int32? rechargeProportion { get; set; }

    }
}
